<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">
	<h:form prependId="false">
	    <h:outputStylesheet>
			.menuLink {
				color: white;
				text-decoration:none
			}
			.menuLink:hover {
				text-decoration:underline
			}
			.menuLink:visited {
				color: white;
				text-decoration:none
			}
		</h:outputStylesheet>
	
	<rich:toolbar id="menu" itemSeparator="none" rendered="#{authenticationBean.userLogged}" event="onclick">
		<!-- Ekonomicky pracovnik -->
		<h:outputLink  styleClass="menuLink" value="#{request.contextPath}/faces/ekonom/supplier.xhtml" rendered="#{authenticationBean.hasRightsToPerformAction(1)}">
			Suppliers	
		</h:outputLink>
		<h:outputLink styleClass="menuLink" value="#{request.contextPath}/faces/ekonom/subscriber.xhtml" rendered="#{authenticationBean.hasRightsToPerformAction(1)}">
		 	Subscribers
		</h:outputLink>
		<h:outputLink styleClass="menuLink" value="#{request.contextPath}/faces/ekonom/discounts.xhtml" rendered="#{authenticationBean.hasRightsToPerformAction(2)}">
		 	Discounts
		</h:outputLink>
		<h:outputLink styleClass="menuLink" value="#{request.contextPath}/faces/ekonom/orders.xhtml" rendered="#{authenticationBean.hasRightsToPerformAction(3)}">
		 	Orders
		</h:outputLink>
		<h:outputLink styleClass="menuLink" value="#{request.contextPath}/faces/ekonom/stock_types.xhtml" rendered="#{authenticationBean.hasRightsToPerformAction(4)}">
		 	Stock types
		</h:outputLink>
			<h:outputLink styleClass="menuLink" value="#{request.contextPath}/faces/ekonom/list_stock_items.xhtml" rendered="#{authenticationBean.hasRightsToPerformAction(9)}">
		 	List stock items
		</h:outputLink>
		
		<!-- Skladnik -->
		<h:outputLink styleClass="menuLink" value="#{request.contextPath}/faces/whman/slots.xhtml" rendered="#{authenticationBean.hasRightsToPerformAction(6)}">
		 	Slots
		</h:outputLink>
		<h:outputLink styleClass="menuLink" value="#{request.contextPath}/faces/whman/stock_items.xhtml" rendered="#{authenticationBean.hasRightsToPerformAction(7)}">
		 	Stock items
		</h:outputLink>
		<h:outputLink styleClass="menuLink" value="#{request.contextPath}/faces/whman/orders.xhtml" rendered="#{authenticationBean.hasRightsToPerformAction(8)}">
		 	Orders
		</h:outputLink>
		
		<!-- Admin -->
		<h:outputLink styleClass="menuLink" value="#{request.contextPath}/faces/admin/administration/users.xhtml" rendered="#{authenticationBean.hasRightsToPerformAction(5)}">
		 	Administration
		</h:outputLink>
	</rich:toolbar>
	</h:form>
</ui:composition>
